package com.eimf.saf.base.service;

import java.util.List;

import com.eimf.saf.base.querycomm.SearchExpression;
import com.eimf.saf.base.util.Page;

/**
 * @author eden
 * @date 2013-11-18 下午2:57:35
 * @Description: TODO(这里用一句话描述这个类的作用)
 */
public interface IBaseService<E>
{
    public String addData(final E entity);

    public void updateData(final E entity);

    public void delData(final E entity);

    public E find(final SearchExpression searchExp);

    public List<E> findList(SearchExpression searchExp);

    public Page findListToPage(SearchExpression searchExp, Page page);

    public int findTotalRows(final SearchExpression searchExp);
}
